package com.szxy.service;


import com.szxy.pojo.Goods;
import com.szxy.utils.GoodsGrid;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 物品服务
 */
public interface GoodsService {

    public List<Goods> findByCatelogGoodsIdService(Integer cateid, Integer limit);

    public Goods findByGoodIdService(Integer id);

    public void addGoodsService(Goods goods);

    List<Goods> searchGoodsService(String str);

    List<Goods> findUserPublishedAllGoodsService(Integer userId);

    void updateGoodsService(Goods goods);

    void deleteGoodsService(Integer goodId);

    GoodsGrid findGoodsByPagination(Integer page, Integer pageSize);

}
